package com.itheima.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "student")
public class Student {
    //    @Value("${student.name}")
    private String name;
    //    @Value("${student.age}")
    private Integer age;
    //    @Value("${student.address}")
    private String address;

    private String[] hobby;
}
